package com.red.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品订单记录表
 * </p>
 *
 * @author author
 * @since 2025-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("orders")
@ApiModel(value="Orders对象", description="商品订单记录表")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单唯一标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "购买用户ID")
    private Long userId;

    @ApiModelProperty(value = "商品ID")
    private Long productId;

    @ApiModelProperty(value = "下单时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "当前订单状态")
    private Integer status;


    @ApiModelProperty(value = "详细地址")
    private String detailAddress;

    @ApiModelProperty(value = "所在地区")
    private String region;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "收货人")
    private String name;

    @ApiModelProperty(value = "金额")
    private Double money;

    @ApiModelProperty(value = "数量")
    private Integer count;





}
